<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/resources/jstl_contexpath.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>虎丘婚纱城管理系统</title>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/bs3/css/bootstrap.min.css" />" />
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap-reset.css" />" />
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/font-awesome/css/font-awesome.css" />" />
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/style.css" />" />
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/style-responsive.css" />" />

    <script type="text/javascript" src="<c:url value="/resources/Js/jquery.js" />"></script>
    <script type="text/javascript" src="<c:url value="/resources/Js/bootstrap.js" />"></script>
    <script type="text/javascript" src="<c:url value="/resources/Js/ckform.js" />"></script>
    <script type="text/javascript" src="<c:url value="/resources/Js/common.js" />"></script>
    <link rel="shortcut icon" href="<c:url value="/resources/assets/ico/favicon.png" />" />

    <style type="text/css">
        .login-body {
            background: url("<c:url value="/resources/img/loginbackground.png" />") 0 0 no-repeat;
            background-size: cover;
            width: 100%;
            height: 100%;
        }
    </style>


    <script type="text/javascript">
		$(function() {
			var loginName = $('#username');
		    var loginPwd = $('#password');
		    var loginForm = $('#loginForm');
			function checkInput() {
			    if (jQuery.trim(loginName.val()).length < 1) {
					alert("请输入用户名!", "提示");
			        return false;
			    }
			    if (jQuery.trim(loginPwd.val()).length < 1) {
			        alert("请输入密码!", "提示");
			        return false;
			    }
			    return true;
			}

			$('#userlogin').click(function() {
				if (checkInput()) {
					loginForm.attr("action", "${ctx }/login/index").submit();
				}
				return false;
			});
		})
	</script>
</head>
    <body class="login-body">
        <div class="container">
            <form class="form-signin" method="post" id="loginForm">
                <h2 class="form-signin-heading">虎丘婚纱城运营管理系统</h2>
                <div class="login-wrap">
                    <div class="user-login-info">
                        <input type="text" class="form-control" id="username" name="username" placeholder="用户名" autofocus>
                        <input type="password" class="form-control" id="password" name="password" placeholder="密码">
                    </div>
                    <button class="btn btn-lg btn-login btn-block" id="userlogin">登录</button>
                    <div class="text-center">
                        苏州知行合一网络科技有限公司提供技术支持，版权所有
                    </div><!--/.col-->
                </div>
            </form>
        </div>
    </body>
</html>